@echo off
if NOT exist "%2" goto :usage
set INPUT=%1
set OUTPUT=%2

set MODE=SIMPLE
if "%3" ==  "special" set MODE="SPECIAL"

echo -- INPUT  = %INPUT%
sox %INPUT% -n stats

echo -- MODE   = %MODE%
if "%MODE%" == "SIMPLE"  gain -16 remix 1 2 0 1,2 1 2 gain -20
if "%MODE%" == "SPECIAL" sox %INPUT% %OUTPUT% remix 1,3,4,5 2,3,4,6

echo -- OUTPUT = %OUTPUT%
sox %OUTPUT% -n stats

goto :end



:usage
echo -- %0 -- DCPscripts - by Peter Forret --
echo -- Effect: convert a 2-channel (stereo) WAV to 6-channel (5.1) WAV
echo -- Usage:  %0 [INPUT WAV] [OUTPUT WAV] [OPTION]
echo --         [OPTION] = simple  - copy channels 1,2 to 3,5,6 (default)
echo --         [OPTION] = special - same but with added FX


:end